import { useSelector } from "react-redux";
import { StateType } from "../store/index.ts";
import type { PageInfoType } from "../store/pageInfoReducer.ts";
const useGetPageInfo = ()=>{
    const pageInfo = useSelector<StateType>(state => state.pageInfo) as PageInfoType

    return pageInfo
}

export default useGetPageInfo